//
//  CYCompanyUserTool.h
//  CreditAddressBook
//
//  Created by LE on 15/12/15.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CYCompanyUserModel.h"
#import "CYUser.h"

@interface CYCompanyUserTool : NSObject
/**
 *  保存用户登录信息
 */
+ (BOOL)saveUserLoginInfo:(CYCompanyUserModel *)user;
/**
 *  保存用户信息
 */
+ (BOOL)updateUserData:(CYCompanyUserModel *)user;
/**
 *  获取用户信息
 */
+ (CYCompanyUserModel *)companyUser;
/**
 *  退出登录清除用户信息
 */
+ (BOOL)logout;
/**
 *  退出登录并跳转到登陆页面
 */
+ (void)logoutWithController:(UIViewController *)con;
/**
 *  根据CYUserType获取返回的是CYUser还是CYCompanyUserModel
 */
+ (void)getUserWithUseType:(CYUserType)userType user:(void(^)(CYUser *user))user companyUser:(void(^)(CYCompanyUserModel *companyUser))companyUser;
@end
